<!DOCTYPE html>
<head>
    <#assign dicSelect = JspTaglibs["http://www.casic304.cn/dicSelect"]/>
    <#assign secSelect = JspTaglibs["http://www.casic304.cn/secSelect"] />
    <#assign fillDept=JspTaglibs["http://www.casic304.cn/fillDept"] />
    <#assign DutyDept = JspTaglibs["http://www.casic304.cn/DutyDept"]/>
    <meta charset="utf-8">
    <title>质量问题基本信息</title>
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=0">
    <link rel="stylesheet" href="${ctx}/layui/css/layui.css" media="all"/>
    <link rel="stylesheet" href="${ctx}/qbdmsStatic/iconfont/iconfont.css"/>
    <link rel="stylesheet" href="${ctx}/qbdmsStatic/style/qbdms.css">
    <script type="text/javascript">
        var __ctx = "${ctx}";
    </script>
</head>
<body class="listBody">
<div class="qbdms-bodyDiv">
    <div class="layui-table-view-body qbdms-add-view-body">
        <form class="formPreview layui-form" requrl="${ctx}/qbdms/wQbdFalProblemreset/get" lay-filter="wQbdFalProblemresetDataForm">
            <div class="qbdms-formTitle">质量问题信息 <i class="qbdms-returnOn closeWindow">返回</i></div>
            <div class="qbdms-formBody">
                <@fillDept.dept id="tbxx"/>
                <div class="layui-row">
                    <div class="qbdms-oneForm">
                        <label class="layui-form-label qbdms-label" title="质量问题名称">质量问题名称<span style="color: red;">*</span></label>
                        <div class="layui-input-block qbdms-input">
                            <input type="text" placeholder="请输入" autocomplete="off" class="layui-input" lay-verify="required" name="fProblemname" lay-reqtext="质量问题名称是必填项" maxlength="50">
                        </div>
                    </div>
                    <div class="qbdms-oneForm">
                        <label class="layui-form-label qbdms-label" title="密级">密级<span style="color: red;">*</span></label>
                        <div class="layui-input-block qbdms-input">
                            <@secSelect.sec_select data_src=1 required=true name="secret"/>
                        </div>
                    </div>
                    <div class="qbdms-oneForm">
                        <label class="layui-form-label qbdms-label" title="问题发生时间">问题发生时间<span style="color: red;">*</span></label>
                        <div class="layui-input-block qbdms-input">
                            <input type="text" placeholder="请输入" autocomplete="off" readonly class="layui-input dateTimeFiled input-right time-init" id="fDetecttime" name="fDetecttime" format="yyyy-MM-dd" datetype="date" lay-verify="required" lay-reqtext="问题发生时间是必填项">
                        </div>
                    </div>
                    <div class="qbdms-oneForm">
                        <label class="layui-form-label qbdms-label" title="型号代号">型号代号<span style="color: red;">*</span></label>
                        <div class="layui-input-block qbdms-input">
                            <select id="fModelsymbol" name="fModelsymbol" class="layui-input filter-value" lay-search="" lay-verify="required" lay-reqtext="型号代号是必填项" lay-filter="xh" maxlength="50"></select>
                        </div>
                    </div>
                    <div class="qbdms-oneForm">
                        <label class="layui-form-label qbdms-label" title="型号名称">型号名称<span style="color: red;">*</span></label>
                        <div class="layui-input-block qbdms-input">
                            <input type="text" placeholder="根据型号代号自动填写" autocomplete="off" class="layui-input textInput isReadonlyInput" name="fModelname" maxlength="100" lay-verify="required" lay-reqtext="型号名称是必填项" disabled>
                        </div>
                    </div>
                    <div class="qbdms-oneForm">
                        <label class="layui-form-label qbdms-label" title="型号批次">型号批次<span style="color: red;">*</span></label>
                        <div class="layui-input-block qbdms-input">
                            <input type="text" placeholder="请输入" autocomplete="off" class="layui-input textInput" lay-verify="required" lay-reqtext="型号批次是必填项" name="fModelbatchno" maxlength="50">
                        </div>
                    </div>
                    <div class="qbdms-oneForm">
                        <label class="layui-form-label qbdms-label" title="型号研制阶段">型号研制阶段<span style="color: red;">*</span></label>
                        <div class="layui-input-block qbdms-input">
                            <@dicSelect.dic name="fModeldevelopphase" nodeKey="xhyzjd" verify="required" reqtext="型号研制阶段是必填项" search=true />
                        </div>
                    </div>
                    <div class="qbdms-oneForm">
                        <label class="layui-form-label qbdms-label" title="型号类别">型号类别<span style="color: red;">*</span></label>
                        <div class="layui-input-block qbdms-input">
                            <@dicSelect.dic name="fModeltype" nodeKey="xhlx" verify="required" reqtext="型号类别是必填项" />
                        </div>
                    </div>
                    <div class="qbdms-oneForm">
                        <label class="layui-form-label qbdms-label" title="工作阶段">工作阶段<span style="color: red;">*</span></label>
                        <div class="layui-input-block qbdms-input">
                            <@dicSelect.dic name="fWorkphase1" nodeKey="gzjd" verify="required" reqtext="工作阶段是必填项" search=true/>
                        </div>
                    </div>
                    <div class="qbdms-oneForm">
                        <label class="layui-form-label qbdms-label" title="故障产品名称">故障产品名称<span style="color: red;">*</span></label>
                        <div class="layui-input-block qbdms-input">
                            <input type="text" name="fProductname" autocomplete="off" class="layui-input " maxlength="50" title="能分解到组合级的分解不到整机的填分系统" lay-verify="required" lay-reqtext="故障产品名称是必填项">
                        </div>
                    </div>
                    <div class="qbdms-oneForm">
                        <label class="layui-form-label qbdms-label" title="故障产品所属产品批次">故障产品所属产品批次</label>
                        <div class="layui-input-block qbdms-input">
                            <input type="text" name="fProductbatchno" placeholder="请输入" autocomplete="off" class="layui-input " maxlength="50">
                        </div>
                    </div>
                    <div class="qbdms-oneForm">
                        <label class="layui-form-label qbdms-label" title="生产分类">生产分类<span style="color: red;">*</span></label>
                        <div class="layui-input-block qbdms-input">
                            <@dicSelect.dic name="fProduceclass" nodeKey="scfl" verify="required" reqtext="生产分类是必填项" search=true/>
                        </div>
                    </div>
                    <div class="qbdms-oneForm">
                        <label class="layui-form-label qbdms-label" title="故障件阶段">故障件阶段<span style="color: red;">*</span></label>
                        <div class="layui-input-block qbdms-input">
                            <@dicSelect.dic name="fBreakphase" nodeKey="gzjjd" verify="required" reqtext="故障件阶段是必填项" search=true/>
                        </div>
                    </div>
                    <div class="qbdms-oneForm">
                        <label class="layui-form-label qbdms-label" title="产品级别">产品级别</label>
                        <div class="layui-input-block qbdms-input">
                            <@dicSelect.dic name="fProductlevel" nodeKey="cpjb" search=true/>
                        </div>
                    </div>
                    <div class="qbdms-oneForm">
                        <label class="layui-form-label qbdms-label" title="产品设计单位">产品设计单位</label>
                        <div class="layui-input-block qbdms-input">
                            <input type="text" placeholder="请输入" autocomplete="off" class="layui-input textInput" name="fProductdesigndept" maxlength="50">
                        </div>
                    </div>
                    <div class="qbdms-oneForm">
                        <label class="layui-form-label qbdms-label" title="产品生产单位">产品生产单位</label>
                        <div class="layui-input-block qbdms-input">
                            <input type="text" placeholder="请输入" autocomplete="off" class="layui-input textInput" name="fProductproducedept" maxlength="50">
                        </div>
                    </div>
                    <div class="qbdms-oneForm">
                        <label class="layui-form-label qbdms-label" title="问题发生地点">问题发生地点</label>
                        <div class="layui-input-block qbdms-input">
                            <input type="text" placeholder="请输入" autocomplete="off" class="layui-input textInput" name="fDetectplace" maxlength="100">
                        </div>
                    </div>
                    <div class="qbdms-oneForm">
                        <label class="layui-form-label qbdms-label" title="所属分系统名称">所属分系统名称<span style="color: red;">*</span></label>
                        <div class="layui-input-block qbdms-input">
                            <input type="text" placeholder="请输入" autocomplete="off" class="layui-input textInput" name="fSubsystemname" maxlength="50" lay-verify="required" lay-reqtext="所属分系统名称是必填项">
                        </div>
                    </div>
                    <div class="qbdms-oneForm">
                        <label class="layui-form-label qbdms-label" title="是否首飞">是否首飞</label>
                        <div class="layui-input-block qbdms-input">
                            <@dicSelect.dic name="fIffirstfly" nodeKey="sf" search=true/>
                        </div>
                    </div>
                    <div class="qbdms-oneForm">
                        <label class="layui-form-label qbdms-label" title="是否靶场质量问题">是否靶场质量问题</label>
                        <div class="layui-input-block qbdms-input">
                            <@dicSelect.dic name="fIfshooting" nodeKey="sf" search=true/>
                        </div>
                    </div>
                    <div class="qbdms-oneForm">
                        <label class="layui-form-label qbdms-label" title="是否批次性">是否批次性</label>
                        <div class="layui-input-block qbdms-input">
                            <@dicSelect.dic name="fIfbatch" nodeKey="sf" search=true/>
                        </div>
                    </div>
                    <div class="qbdms-oneForm">
                        <label class="layui-form-label qbdms-label" title="是否三类问题">是否三类问题<span style="color: red;">*</span></label>
                        <div class="layui-input-block qbdms-input">
                            <@dicSelect.dic name="fIfthree" nodeKey="spslwt" verify="required" reqtext="是否三类问题是必填项" search=true/>
                        </div>
                    </div>
                    <div class="qbdms-oneForm">
                        <label class="layui-form-label qbdms-label" title="问题等级">问题等级</label>
                        <div class="layui-input-block qbdms-input">
                            <@dicSelect.dic name="fProblemrank" nodeKey="wtdj" nowItemValue="一般" search=true/>
                        </div>
                    </div>
                    <div class="qbdms-oneForm">
                        <label class="layui-form-label qbdms-label" title="硬件/软件">硬件/软件<span style="color: red;">*</span></label>
                        <div class="layui-input-block qbdms-input">
                            <@dicSelect.dic name="fSofthard" nodeKey="yjrj" verify="required" reqtext="硬件/软件是必填项" search=true/>
                        </div>
                    </div>
                    <div class="qbdms-oneForm">
                        <label class="layui-form-label qbdms-label" title="问题级别">问题级别<span style="color: red;">*</span></label>
                        <div class="layui-input-block qbdms-input">
                            <@dicSelect.dic name="fProblemlever" nodeKey="wtjb" nowItemValue="院级" verify="required" reqtext="问题级别是必填项" search=true/>
                        </div>
                    </div>
                    <div class="qbdms-oneForm">
                        <label class="layui-form-label qbdms-label" title="归零周期(天)">归零周期(天)</label>
                        <div class="layui-input-block qbdms-input">
                            <input type="text" placeholder="自动计算" autocomplete="off" class="layui-input textInput" name="fResetday" maxlength="50" readonly>
                        </div>
                    </div>
                    <div class="qbdms-oneForm">
                        <label class="layui-form-label qbdms-label">质量部门负责人<span style="color: red;">*</span></label>
                        <div class="layui-input-block qbdms-input">
                            <input type="text" name="qualityLeader" placeholder="请输入" lay-verify="required" autocomplete="off" class="layui-input " maxlength="50" lay-reqtext="质量部门负责人是必填项">
                        </div>
                    </div>
                    <div class="qbdms-textarea">
                        <label class="layui-form-label qbdms-label">问题/故障现象描述<span style="color: red;">*</span></label>
                        <div class="layui-input-block qbdms-input">
                            <textarea rows="2" class="layui-textarea" placeholder="请输入" name="fFailuredescription" maxlength="650" lay-verify="required" lay-reqtext="问题/故障现象描述是必填项"></textarea>
                        </div>
                    </div>
                    <div class="qbdms-textarea">
                        <label class="layui-form-label qbdms-label">深层次原因</label>
                        <div class="layui-input-block qbdms-input">
                            <textarea rows="2" class="layui-textarea" placeholder="请输入" name="fDeepreason" maxlength="650"></textarea>
                        </div>
                    </div>
                    <div class="qbdms-textarea">
                        <label class="layui-form-label qbdms-label">问题原因描述</label>
                        <div class="layui-input-block qbdms-input">
                            <textarea rows="2" class="layui-textarea" placeholder="请输入" name="fCausation" maxlength="650"></textarea>
                        </div>
                    </div>
                    <div class="qbdms-textarea">
                        <label class="layui-form-label qbdms-label">“四个两”要求对照分析</label>
                        <div class="layui-input-block qbdms-input">
                            <textarea rows="2" class="layui-textarea" placeholder="请输入" name="fFourrefer" maxlength="650"></textarea>
                        </div>
                    </div>
                    <div class="qbdms-textarea">
                        <label class="layui-form-label qbdms-label">举一反三</label>
                        <div class="layui-input-block qbdms-input">
                            <textarea rows="2" class="layui-textarea" placeholder="请输入" name="fRanage" maxlength="650"></textarea>
                        </div>
                    </div>
                    <div class="qbdms-textarea">
                        <label class="layui-form-label qbdms-label">纠正措施</label>
                        <div class="layui-input-block qbdms-input">
                            <textarea rows="2" class="layui-textarea" placeholder="请输入" name="fCorrectmeasure" maxlength="650"></textarea>
                        </div>
                    </div>
                    <div class="qbdms-textarea">
                        <label class="layui-form-label qbdms-label">管理因素分析</label>
                        <div class="layui-input-block qbdms-input">
                            <textarea rows="2" class="layui-textarea" placeholder="请输入" name="fManagefactoranalysis" maxlength="650"></textarea>
                        </div>
                    </div>
                    <div class="qbdms-oneForm">
                        <label class="layui-form-label qbdms-label" title="原因分类(一级)">原因分类(一级)<span style="color: red;">*</span></label>
                        <div class="layui-input-block qbdms-input">
                            <select id="fCausationclass1" name="fCausationclass1" lay-filter="yyfl1" lay-verify="required"  lay-reqtext="原因分类(一级)是必填项" lay-search=""></select>
                        </div>
                    </div>
                    <div class="qbdms-oneForm">
                        <label class="layui-form-label qbdms-label" title="原因分类(二级)">原因分类(二级)</label>
                        <div class="layui-input-block qbdms-input">
                            <select id="fCausationclass2" name="fCausationclass2" lay-filter="yyfl2" lay-search=""></select>
                        </div>
                    </div>
                    <div class="qbdms-oneForm">
                        <label class="layui-form-label qbdms-label" title="原因分类(三级)">原因分类(三级)</label>
                        <div class="layui-input-block qbdms-input">
                            <select id="fCausationclass3" name="fCausationclass3" lay-filter="yyfl3" lay-search=""></select>
                        </div>
                    </div>
                    <div class="qbdms-oneForm">
                        <label class="layui-form-label qbdms-label" title="问题责任单位">问题责任单位<span style="color: red;">*</span></label>
                        <div class="layui-input-block qbdms-input">
                            <@DutyDept.dept css="layui-input filter-value" name="fDutydept" id="dutyDept" showIn="0,1,2" verify="required" reqtext="问题责任单位是必填项"/>
                        </div>
                    </div>
                    <div class="qbdms-oneForm">
                        <label class="layui-form-label qbdms-label" title="责任单位性质">责任单位性质<span style="color: red;">*</span></label>
                        <div class="layui-input-block qbdms-input">
                            <@dicSelect.dic name="fDutydeptnature" nodeKey="zrswxz" verify="required" reqtext="责任单位性质是必填项" search=true/>
                        </div>
                    </div>
                    <div class="qbdms-oneForm">
                        <label class="layui-form-label qbdms-label" title="是否完成归零">是否完成归零<span style="color: red;">*</span></label>
                        <div class="layui-input-block qbdms-input">
                            <@dicSelect.dic name="fIfreset" nodeKey="sf" filter="fIfreset" verify="required" reqtext="是否完成归零是必填项" search=true/>
                        </div>
                    </div>
                    <div class="qbdms-oneForm">
                        <label class="layui-form-label qbdms-label" title="归零方式">归零方式<span style="color: red;" hidden>*</span></label>
                        <div class="layui-input-block qbdms-input">
                            <@dicSelect.dic name="fResettype" nodeKey="glfs" filter="fResettype" search=true reqtext="归零方式是必填项"/>
                        </div>
                    </div>
                    <div class="qbdms-oneForm">
                        <label class="layui-form-label qbdms-label" title="技术归零时间">技术归零时间<span style="color: red;" hidden>*</span></label>
                        <div class="layui-input-block qbdms-input">
                            <input type="text" name="fSkillresettime" placeholder="请输入" readonly autocomplete="off" class="layui-input dateTimeFiled time-init" maxlength="50" lay-reqtext="技术归零时间是必填项">
                        </div>
                    </div>
                    <div class="qbdms-oneForm">
                        <label class="layui-form-label qbdms-label" title="管理归零时间">管理归零时间<span style="color: red;" hidden>*</span></label>
                        <div class="layui-input-block qbdms-input">
                            <input type="text" name="fManageresettime" placeholder="请输入" readonly autocomplete="off" class="layui-input dateTimeFiled time-init" maxlength="50" lay-reqtext="管理归零时间是必填项">
                        </div>
                    </div>
                    <div class="qbdms-textarea">
                        <label class="layui-form-label qbdms-label">技术归零<span style="color: red;" hidden>*</span></label>
                        <div class="layui-input-block qbdms-input">
                            <div class="doNotDelThisDiv layui-input-inline">
                                <div class="uploadFileCont">
                                    <input type="button" lay-verify="fileRequired"
                                           class="layui-btn fileUpload qbdms-fileUp iconfont iconupload"
                                           value="上传附件" id="fSkillcerfileList" name="fSkillcerfileList">
                                    <i class="qbdms-fileUpText">支持多附件上传，附件格式：doc docx pdf，单文件大小限制不超过200M</i>
                                    <input type="text" id="fSkillcerfile" class="uploadInput" name="fSkillcerfile" style="height: 0; border: none">
                                    <div class="uploadFileList" fileUploadName="fSkillcerfile"></div>
                                </div>
                            </div>
                        </div>
                    </div>
                    <div class="qbdms-textarea">
                        <label class="layui-form-label qbdms-label">管理归零<span style="color: red;" hidden>*</span></label>
                        <div class="layui-input-block qbdms-input">
                            <div class="doNotDelThisDiv layui-input-inline">
                                <div class="uploadFileCont">
                                    <input type="button" lay-verify="fileRequired"
                                           class="layui-btn fileUpload qbdms-fileUp iconfont iconupload"
                                           value="上传附件" id="fManagecerfileList" name="fManagecerfileList">
                                    <i class="qbdms-fileUpText">支持多附件上传，附件格式：doc docx pdf，单文件大小限制不超过200M</i>
                                    <input type="text" id="fManagecerfile" class="uploadInput" name="fManagecerfile" style="height: 0; border: none">
                                    <div class="uploadFileList" fileUploadName="fManagecerfile"></div>
                                </div>
                            </div>
                        </div>
                    </div>
                    <div class="qbdms-oneForm waixieTr" style="display: none;">
                        <label class="layui-form-label qbdms-label" title="外协外购乙方">外协外购乙方<span style="color: red;">*</span></label>
                        <div class="layui-input-block qbdms-input">
                            <input type="text" name="fOutdeptname" placeholder="请输入" autocomplete="off" class="layui-input " maxlength="50" lay-reqtext="外协外购乙方是必填项">
                        </div>
                    </div>
                    <div class="qbdms-oneForm waixieTr" style="display: none;">
                        <label class="layui-form-label qbdms-label" title="是否集团内配套">是否集团内配套<span style="color: red;">*</span></label>
                        <div class="layui-input-block qbdms-input">
                            <@dicSelect.dic name="fIfmating" nodeKey="sf" search=true reqtext="是否集团内配套是必填项"/>
                        </div>
                    </div>
                    <div class="qbdms-oneForm waixieTr" style="display: none;">
                        <label class="layui-form-label qbdms-label" title="行业">行业<span style="color: red;">*</span></label>
                        <div class="layui-input-block qbdms-input">
                            <@dicSelect.dic name="fIndusty" nodeKey="xy" search=true reqtext="行业是必填项"/>
                        </div>
                    </div>
                    <div class="qbdms-oneForm waixieTr" style="display: none;">
                        <label class="layui-form-label qbdms-label" title="外协性质">外协性质<span style="color: red;">*</span></label>
                        <div class="layui-input-block qbdms-input">
                            <@dicSelect.dic name="fOutnature" nodeKey="wxxz" search=true reqtext="外协性质是必填项"/>
                        </div>
                    </div>
                    <div class="qbdms-oneForm ruanjianTr" style="display: none;">
                        <label class="layui-form-label qbdms-label" title="软件等级">软件等级<span style="color: red;">*</span></label>
                        <div class="layui-input-block qbdms-input">
                            <@dicSelect.dic name="fSoftrank" nodeKey="rjdj" search=true reqtext="软件等级是必填项"/>
                        </div>
                    </div>
                    <div class="qbdms-oneForm">
                        <label class="layui-form-label qbdms-label" title="是否责任追究">是否责任追究</label>
                        <div class="layui-input-block qbdms-input">
                            <@dicSelect.dic name="fIfduty" nodeKey="sf" filter="fIfduty" search=true/>
                        </div>
                    </div>
                    <div class="qbdms-oneForm">
                        <label class="layui-form-label qbdms-label" title="解决情况">解决情况</label>
                        <div class="layui-input-block qbdms-input">
                            <@dicSelect.dic name="fSolveresult" nodeKey="jjqk" search=true/>
                        </div>
                    </div>
                    <div class="qbdms-oneForm">
                        <label class="layui-form-label qbdms-label" title="问题处理方式">问题处理方式</label>
                        <div class="layui-input-block qbdms-input">
                            <@dicSelect.dic name="fMeasureclass" nodeKey="wtclfs" search=true/>
                        </div>
                    </div>
                    <div class="qbdms-oneForm zerenzhuijiuTr">
                        <label class="layui-form-label qbdms-label" title="责任追究类别">责任追究类别<span style="color: red;">*</span></label>
                        <div class="layui-input-block qbdms-input">
                            <@dicSelect.dic name="fDutyinvestigationtyp" nodeKey="zrzjlb" search=true reqtext="责任追究类别是必填项"/>
                        </div>
                    </div>
                    <div class="qbdms-oneForm zerenzhuijiuTr">
                        <label class="layui-form-label qbdms-label" title="是否完成责任追究">是否完成责任追究<span style="color: red;">*</span></label>
                        <div class="layui-input-block qbdms-input">
                            <@dicSelect.dic name="fConfirmdutyinvest" nodeKey="sf" search=true reqtext="是否完成责任追究是必填项"/>
                        </div>
                    </div>
                    <div class="qbdms-oneForm zerenzhuijiuTr">
                        <label class="layui-form-label qbdms-label" title="总金额">总金额</label>
                        <div class="layui-input-block qbdms-input">
                            <input type="text" name="fAllcount" placeholder="自动计算" readonly autocomplete="off" class="layui-input isReadonlyInput" maxlength="50">
                        </div>
                    </div>
                    <div class="qbdms-textarea zerenzhuijiuTr">
                        <label class="layui-form-label qbdms-label" title="认定情况">认定情况<span style="color: red;">*</span></label>
                        <div class="layui-input-block qbdms-input">
                            <textarea rows="2" class="layui-textarea" placeholder="请输入" name="fIdentification" maxlength="650" lay-reqtext="认定情况是必填项"></textarea>
                        </div>
                    </div>
                    <div class="qbdms-textarea zerenzhuijiuTr">
                        <label class="layui-form-label qbdms-label" title="处罚原因">处罚原因</label>
                        <div class="layui-input-block qbdms-input">
                            <textarea rows="2" class="layui-textarea" placeholder="请输入" name="punishRenson" maxlength="650"></textarea>
                        </div>
                    </div>
                </div>
            </div>
            <p class="qbdms-SubTableTitle"><span>责任追究实施情况表</span></p>
            <div class="qbdms-tableDiv">
                <a modetype="2" class="addFormTr1" id="add"><i class="layui-icon layui-icon-addition"></i>新增</a>
                <table class="qbdms-temTable wQbdCalRewandpuns subFormTable" id="wQbdCalRewandpuns" style="min-width: 1360px;">
                    <tbody>
                    <tr class="temSpace qbdms-temTable-thead">
                        <td class="temSpace" style="width: 30px;">序号</td>
                        <td class="temSpace subDialogShowState" style="width: 200px">单位名称<span style="color: red;">*</span></td>
                        <td class="temSpace subDialogShowState" style="width: 90px">处罚总人数<span style="color: red;">*</span></td>
                        <td class="temSpace subDialogShowState" style="width: 90px">金额(元)<span style="color: red;">*</span></td>
                        <td class="temSpace subDialogShowState" style="width: 100px">是否行政处分<span style="color: red;">*</span></td>
                        <td class="temSpace subDialogShowState" style="width: 100px">行政处分人数<span style="color: red;">*</span></td>
                        <td class="temSpace subDialogShowState">详细情况<span style="color: red;">*</span></td>
                        <td class="temSpace qbdms-subOptState">管理</td>
                    </tr>
                    <tr class="temSpace subContTem">
                        <td class="temSpace qbdms-temTable-seNumber">
                            <div class="temTag">0</div>
                        </td>
                        <td class="temSpace qbdms-temTable-td">
                            <input type="text" title="请输入单位名称" requiredFlag="required" autocomplete="off" class="layui-input textInput" maxlength="50" name="s:wQbdCalRewandpuns:fName" lay-reqtext="单位名称是必填项">
                        </td>
                        <td class="temSpace qbdms-temTable-td">
                            <input type="text" title="请输入处罚总人数" requiredFlag="required|integer" autocomplete="off" class="layui-input" name="s:wQbdCalRewandpuns:fTotalnumber" maxlength="10" lay-reqtext="处罚总人数是必填项">
                        </td>
                        <td class="temSpace qbdms-temTable-td qbdms-money">
                            <input type="text" title="请输入金额" requiredFlag="required|money" autocomplete="off" class="layui-input" name="s:wQbdCalRewandpuns:fMoney" maxlength="50" lay-reqtext="金额是必填项">
                        </td>
                        <td class="temSpace qbdms-temTable-td">
                            <!--                            <select name="s:wQbdCalRewandpuns:fIfpunishment" lay-search="" requiredFlag="required"></select>-->
                            <@dicSelect.dic name="s:wQbdCalRewandpuns:fIfpunishment" nodeKey="sf" search=true z_verify="required" nowItemValue="否" reqtext="是否行政处分是必填项"/>
                        </td>
                        <td class="temSpace qbdms-temTable-td">
                            <input type="text" title="请输入行政处分人数" autocomplete="off" requiredFlag="required|integer" class="layui-input textInput" name="s:wQbdCalRewandpuns:fPunishmentnumber" maxlength="10" lay-reqtext="行政处分人数是必填项">
                        </td>
                        <td class="temSpace qbdms-temTable-td">
                            <input type="text" title="请输入详细情况" requiredFlag="required" autocomplete="off" class="layui-input" name="s:wQbdCalRewandpuns:fDetails" maxlength="50" lay-reqtext="详细情况是必填项">
                        </td>
                        <td class="temSpace qbdms-subOptState">
                            <a class="subDeleteTr RightBtn">删除</a>
                        </td>
                    </tr>
                    </tbody>
                </table>
            </div>
            <div class="layui-hide">
                <input type="text" name="id" placeholder="请输入" autocomplete="off" class="layui-input " maxlength="50">
                <input name="filldeptid" value="${filldeptid}" style="display: none"/>
                <input name="filldept" value="${filldept}" style="display: none"/>
                <input name="fillmanaccount" value="${fillmanaccount}" style="display: none"/>
                <input name="fillman" value="${fillman}" style="display: none"/>
                <input name="filldate" value="${filldate}" style="display: none"/>
                <input name="fSuperviseid" value="${fSuperviseid}" style="display: none"/>
            </div>
            <div class="layui-form-item btnformItem">
                <p>
                    <span id="hideAndShow" style="display: none;">
                        <a lay-submit lay-filter="wQbdFalProblemreset" class="layui-btn btn-n privateSubmit qbdms-oneBtn" requrl="${ctx}/qbdms/wQbdFalProblemreset/save">提交</a>
                    </span>
                    <button type="reset" id="closeWindow" style="margin-left: 10px;" class="layui-btn layui-btn-sm btn-save qbdms-oneBtnLine">取消</button>
                </p>
            </div>
        </form>
    </div>
</div>
<script src="${ctx}/public/component.js" type="text/javascript"></script>
<script src="${ctx}/json/comboselect.js" type="text/javascript"></script>
<script src="${ctx}/qbdmsStatic/public/configFile.js"></script>
<script src="${ctx}/layui/layui.js"></script>
<script>
    var comboselect;
    layui.config({
        base: serverPath.qbdmsPath + staticPath.qbdmsPath //静态资源所在路径
    }).extend({
        index: 'lib/index' //主入口模块
    }).use(['index', 'setter', 'layer', 'propsHandle', 'upload', 'common', 'laydate', 'jquery', 'publicMethods', 'qbdmsForm'], function () {

        // -----常量声明----------
        var $ = layui.jquery,
            laydate = layui.laydate,
            setter = layui.setter,  // 配置信息
            layer = layui.layer,
            common = layui.common,
            propsHandle = layui.propsHandle,
            upload = layui.upload,
            publicMethods = layui.publicMethods,
            formId = '${formDefId}' || '',
            defProps = {
                //viewMould: 'form/formDef/view/formDesign/moulds/', // 组件模块 存放文件 *****
                viewMould: 'moulds/', // 组件模块 存放文件 *****
                formAreaInfo: '.formPreview',
                formAreaInfo: 'html',
                temDate: '.temDate',
                uploadFileBtn: '.uploadFileBtn',
                uploadImgBtn: '.uploadImgBtn',
                richTextArea: '.richTextArea',
                selectInput: '.selectInput',
                radioOptionCont: '.radioOptionCont',
                dataLexiTree: '.dataLexiTree',
                selectorBtn: '.selectorBtn'
            },
            temQuery = new propsHandle(),  // 实例化模板功能部分
            form = layui.qbdmsForm;
        // 初始化模板功能
        temQuery.initTem({
            selectorBtn: defProps.selectorBtn,
            selectorTemPath: setter.views + defProps.viewMould
        });
        $(".subContTem").hide();
        $(".qbdms-SubTableTitle").hide();
        $(".qbdms-tableDiv").hide();
        // 子表初始化事件
        temQuery.initSubEvent(defProps, serverPath, setter);

        var dateTimeFiledLen = $(".dateTimeFiled");
        for (var i = 0; i < dateTimeFiledLen.length; i++) {
            laydate.render({
                elem: dateTimeFiledLen[i] //指定元素
                , type: 'date'
                , trigger: 'click'
                , done: computeResetDay
            });
        }

        function computeResetDay(data){
            // 自动计算：归零时间—问题发生时间
            // 若归零方式选择了“技术归零”，归零周期按技术归零时间算；
            // 若归零方式选择了“管理归零”，归零周期按管理归零时间算；
            // 若归零方式选择了“双归零”，归零周期按技术归零时间算。
            var fSkillresettime = $("[name='fSkillresettime']").val();
            var fManageresettime = $("[name='fManageresettime']").val();
            var fDetecttime = $("[name='fDetecttime']").val();
            var fResettype = $("[name='fResettype']").val();
            if(data){
                data.fSkillresettime && (fSkillresettime=data.fSkillresettime);
                data.fManageresettime && (fManageresettime=data.fManageresettime);
                data.fDetecttime && (fDetecttime=data.fDetecttime);
                data.fResettype && (fResettype=data.fResettype);
            }
            var fResetday = 0;
            if (fDetecttime == "" || fResettype == "") { return; }

            if (fResettype == "技术归零") {
                fResetday = fSkillresettime == "" ? 0 : GetNumberOfDays(fSkillresettime, fDetecttime);
            } else if (fResettype == "管理归零") {
                fResetday = fManageresettime == "" ? 0 : GetNumberOfDays(fManageresettime, fDetecttime);
            } else if (fResettype == "双归零") {
                fResetday = fSkillresettime == "" ? 0 : GetNumberOfDays(fSkillresettime, fDetecttime);
            } else {
                fResetday = 0;
            }
            $("[name='fResetday']").val(fResetday);
        }

        function GetNumberOfDays(endDate, beginDate) {//获得天数
            //beginDate：开始日期，endDate 结束日期
            var end = Date.parse(new Date(endDate));
            var begin = Date.parse(new Date(beginDate));
            var day = parseInt((end - begin) / (1000 * 60 * 60 * 24));//核心：时间戳相减，然后除以天数
            return day;
        }

        var count = 1;
        $(document).on('click', '.addFormTr1', function () {
            count += 1;
            var modetype = $(this).attr('modetype'),
                copyObj = $(this).parent().children('.subFormTable'),
                copyHtm = copyObj.find('tr').eq(1);
            if (modetype === '2') {
                //在这里做一个转换，控制子表隐藏行的必填
                var copyHtmlStr = copyHtm.html();
                copyHtmlStr = copyHtmlStr.replace(/requiredflag/g, "lay-verify");
                // 表格
                copyObj.append('<tr class="temSpace">' + copyHtmlStr + '</tr>');
                // copyObj.append('<tr class="temSpace">' + copyHtm.html() + '</tr>');
                var trArr = copyObj.find('tr');
                trArr.eq(trArr.length - 1).find('td').eq(0).find('.temTag').html(trArr.length - 2);
                // trArr.eq(trArr.length - 1).find('td').eq(6).find('button').attr("id","fSkillcerfileList"+count);
                trArr.eq(trArr.length - 1).find('.fileUpload').attr("id", "fSkillcerfileList" + count);

                trArr.eq(trArr.length - 1).find('[isinit="1"]').each(function (i, item) {
                    $(item).attr('isinit', '2');
                });
                if (trArr.length > 3) {
                    trArr.eq(trArr.length - 1).find('[type=radio]').each(function (i, item) {
                        $(item).attr('name', (trArr.eq(1).find('[type=radio]').eq(i).attr('name')) + '_' + (trArr.length - 2))
                    });
                }
                temQuery.initTemEvent(defProps, serverPath, setter);
            } else if (modetype === '1') {
                // updateTr(copyObj, copyHtm);
            }
            form.render();
            publicMethods.bottomFixd()
        });

        //- 添加表单验证规则 开始 ---------------------------------------------------------------------
        form.verify({
            length100: [/^.{0,100}$/, '输入字符数不能超过100'],
            length2000: [/^.{0,2000}$/, '输入字符数不能超过2000'],
            fileRequired: function (value,item) {
                value = $(item).siblings(".uploadInput").val()
                if(!new RegExp(/[\S]+/).test(value)){
                    return common.verifyTitleAdd(item) +"没有上传对应附件"
                }
            },
            money: function (value,item) {
                if (value && !new RegExp(/(^[1-9]([0-9]+)?(\.[0-9]{1,2})?$)|(^(0){1}$)|(^[0-9]\.[0-9]([0-9])?$)/).test(value)) {
                    return common.verifyTitleAdd(item) +'请输入数字且小数最多两位';
                }
            },
            integer: function (value,item) {
                if (value && !new RegExp(/^[+]{0,1}(\d+)$/).test(value)) {
                    return common.verifyTitleAdd(item) + '请输入正整数';
                }
            }
        });
        //- 添加表单验证规则 结束 ---------------------------------------------------------------------

        form.on('select(xh)', function (data) {
            $("input[name='fModelname']").val(data.elem[data.elem.selectedIndex].getAttribute("xhmc"));
        });

        //关闭当前页面
        $("#closeWindow,.closeWindow").click(function () {
            var mdb = "${db}";
            if (null != mdb && 'db' === mdb && undefined != mdb) {
                window.location.href = serverPath.qbdmsPath + '/qbdms/wQbdFalSupervise/view/list';
                return;
            }
            window.location.href = serverPath.qbdmsPath + '/qbdms/wQbdFalProblemreset/view/list';
        });

        var runId = "${runId}";
        if (runId == null || runId == '') {
            $("#hideAndShow").show();
        }

        var index = parent.layer.getFrameIndex(window.name);
        common.updateForm({
            name: 'wQbdFalProblemresetDataForm',
            idValue: "${id}",
            primary: "id",
            beforeSubmitFun: function (data) {
                var fDetecttime = $("[name='fDetecttime']").val();
                var fSkillresettime = $("[name='fSkillresettime']").val();
                var fManageresettime = $("[name='fManageresettime']").val();
                var fResettype = $("[name='fResettype']").val();
                var fmtDate = new Date(fDetecttime.replace(/\-/g, "\/"));
                if(fSkillresettime){
                    if(fmtDate>new Date(fSkillresettime.replace(/\-/g, "\/"))){
                        layer.msg('技术归零时间，不能早于问题发生时间。', {icon: 5});
                        return false;
                    }
                }
                if(fManageresettime){
                    if(fmtDate>new Date(fManageresettime.replace(/\-/g, "\/"))){
                        layer.msg('管理归零时间，不能早于问题发生时间。', {icon: 5});
                        return false;
                    }
                }
                //- 归零时间整理 开始 ------------------------------------------------------
                if (fResettype == "技术归零" || fResettype == "双归零") {
                    data.field["fResettime"] = fSkillresettime;
                } else if (fResettype == "管理归零") {
                    data.field["fResettime"] = fManageresettime;
                } else {
                    data.field["fResettime"] = "";
                }
                //- 归零时间整理 结束 ------------------------------------------------------

                //- 附件密级不能高于表单密级 开始 ------------------------------------------------------
                var selectMaxVal = 0;
                var formSecretVal = $("[name='secret']").val();
                $(".fileSecLevel select").each(function () {
                    selectMaxVal = selectMaxVal >= $(this).val() ? selectMaxVal : $(this).val();
                });

                if (selectMaxVal > formSecretVal) {
                    layer.msg('附件密级不能高于表单密级。', {icon: 5});
                    return false;
                }
                //- 附件密级不能高于表单密级 结束 ------------------------------------------------------
                $(".uploadFileList").each(function (i, v) {
                    common.constructFileStr(v)
                });
                var files=[];
                //整理上传附件的隐藏域，将提交的字符串转为json对象
                $(".uploadInput").each(function () {
                    var uploadName = $(this).attr("name");
                    if (!$(this).val()) {
                        return;
                    }
                    data.field[uploadName] = eval($(this).val());
                    files=files.concat(eval($(this).val()));
                });


                //- 子表数据 开始 ------------------------------------------------------
                var sub = [];
                $('table.subFormTable').each(function () {
                    var table = {
                        tableName: $(this).attr('class').split(" ")[1],
                        fields: []
                    };
                    $(this).find('tr.temSpace').each(function (i, item) {    /*修复需要提交隐藏的行数据的bug*/
                        if (i > 1) {
                            var row = {};
                            var objRow = $(this);
                            $("input:text[name^='s:'],input[type='hidden'][name^='s:'],textarea[name^='s:'],select[name^='s:'],ul[name^='m:']", objRow).each(function () {
                                var name = $(this).attr('name').replace(/.*:/, '');
                                row[name] = $(this).val();
                            });
                            row["sort"] = i - 1;
                            table.fields.push(row);
                        }
                    });
                    data.field[table.tableName] = table.fields;
                });
                return common.setFileLevel(files);
                //- 子表数据 结束 ------------------------------------------------------
            },
            getCallback: function (data) {
                $("#tbxx").html("<span class='qbdms-TBinformation'>填报信息:</span><span class='qbdms-TBinformationText'>【" + data.data.filldept + " | " + data.data.fillman + " | " + data.data.filldate + "】</span>");
                //-修改页面 初始化附件组件 开始 ------------------------------------------
                $('.uploadFileList').each(function () {
                    var fileUploadName = $(this).attr("fileUploadName");
                    var jsonFile = data.data[fileUploadName];
                    var files = eval(jsonFile);

                    if (files) {
                        for (var i = 0; i < files.length; i++) {
                            var fileLevel = files[i].fileLevel;
                            var fileLevelText = files[i].fileLevelText;
                            var fileSec = '<div class="fileSecLevel layui-input-inline">' + '<@secSelect.sec_select data_src=1 hasBlank=false/>' + "</div>";
                            var newStr = '<span class="file-id" style="margin-right: 20px;" fileId=' + files[i].fileId + ' fileLevelText="' + fileLevelText + '">' + fileSec + '<span class="file-name" title="点击下载文件" onclick="downFile(this)"><i class="iconfont data-iconcommon_fujian" style="margin-right: 5px"></i>' + files[i].fileName + '</span><i class="iconfont data-iconcommon_close deleteFile" ></i></span>';
                            $(this).append(newStr);
                            $(this).find("select:last").val(fileLevel);
                        }
                    }
                });
                //-修改页面 初始化附件组件 结束 ------------------------------------------
                $('table.subFormTable').each(function () {
                    var table = {
                        tableName: $(this).attr('class').split(" ")[1],
                        fields: []
                    };
                    table.fields = data.data[table.tableName];
                    for (var i = 0, len = table.fields.length; i < len; i++) {
                        var dataRow = table.fields[i];
                        var temp = $("." + table.tableName).prev().click();
                        //这里有子表表头占一行，子表隐藏行占一行，所以取需要赋值的行时，需要temp=i+2
                        var domRow = $(this).find("tr.temSpace:eq(" + (i * 1 + 2) + ")");
                        $.each(dataRow, function (j, val) {
                            var domItem = domRow.find("[name$='" + j + "']");
                            if (domItem) {
                                domItem.val(val);
                            }
                        });
                    }
                });
                //-修改页面 级联下拉 原因分类 开始 ------------------------------------------
                comboselect.setDefaultValueByArr(data.data["fCausationclass1"], data.data["fCausationclass2"], data.data["fCausationclass3"]);
                form.render("select");
                //-修改页面 级联下拉 原因分类 结束 ------------------------------------------

                //-修改页面 外协外购 开始 ---------------------------------------------------
                var fCausationclass1 = data.data["fCausationclass1"];
                if (fCausationclass1 == "外协" || fCausationclass1 == "外购") {
                    $(".waixieTr").show();
                    common.setComponentRequired(["fOutdeptname", "fIfmating", "fIndusty", "fOutnature"], true);
                }
                //-修改页面 外协外购 结束 ---------------------------------------------------

                //-修改页面 软件 开始 ------------------------------------------------------------
                var fCausationclass1 = data.data["fCausationclass1"];
                var fCausationclass2 = data.data["fCausationclass2"];
                if (fCausationclass1 == "软件" || fCausationclass2 == "软件") {
                    $(".ruanjianTr").show();
                    common.setComponentRequired(["fSoftrank"], true);
                }
                //-修改页面 软件 结束 ------------------------------------------------------------
                var fIfduty = data.data["fIfduty"];
                initIfDutyDiv(fIfduty);
                //是否归零
                overRtnZero(data.data);
                resetTypeChange(data.data);
            },
            updateCallback: function (data) {
                if (publicMethods._filterRecord(data)) {
                    if ($(".privateSubmit")) {
                        $(".privateSubmit").attr("disabled", false).css("pointer-events", "auto");
                    }
                    var mdb = "${db}";
                    if (null != mdb && 'db' === mdb && undefined != mdb) {
                        window.parent.layer.alert(publicMethods.confirmStyle(data.msg), {title: false, skin: 'confirm-class'}, function (index) {
                            layer.close(index);
                            window.location.href = serverPath.qbdmsPath + '/qbdms/wQbdFalSupervise/view/list';
                        });
                    } else {
                        layer.alert(publicMethods.confirmStyle(data.msg),{title: false,skin: 'confirm-class'}, function (index) {
                            layer.close(index);
                            window.location.href = serverPath.qbdmsPath + '/qbdms/wQbdFalProblemreset/view/list';
                        });
                    }
                } else {
                    layer.alert(publicMethods.confirmStyle(data.msg),{title: false,skin: 'confirm-class'});
                }
                return false;
            }

        });

        //- 原因分类初始化 绑事件 开始 -------------------------------------------------------------
        var yyflsList = eval('${yyflsList}'); //原因分类
        var typeId = "${typeId}";
        comboselect = ComboSelectFactory(yyflsList, 'fCausationclass1', 'fCausationclass2', 'fCausationclass3');
        comboselect.setProperties({
            idKey: 'dicId',
            valueKey: 'itemValue',
            textKey: 'itemValue',
            parentIdKey: 'parentId',
            topParentValue: typeId
        });
        form.on('select(yyfl1)', function () {
            comboselect.eventHandle(document.getElementById("fCausationclass1"), 0)();
            form.render("select");
            var componentNameArr = ["fOutdeptname", "fIfmating", "fIndusty", "fOutnature"];
            if ($("#fCausationclass1").val() == "外协" || $("#fCausationclass1").val() == "外购") {
                $(".waixieTr").show();
                common.setComponentRequired(componentNameArr, true);
            } else {
                $(".waixieTr").hide();
                common.setComponentRequired(componentNameArr, false);
                common.clearComponentVal(componentNameArr);
            }

            if ($("#fCausationclass1").val() == "软件" || $("#fCausationclass2").val() == "软件") {
                $(".ruanjianTr").show();
                common.setComponentRequired(["fSoftrank"], true);
            } else {
                $(".ruanjianTr").hide();
                common.setComponentRequired(["fSoftrank"], false);
                common.clearComponentVal(["fSoftrank"]);
            }
            form.render();
        });
        form.on('select(yyfl2)', function () {
            comboselect.eventHandle(document.getElementById("fCausationclass2"), 1)();//三院的，第三极原因分类
            form.render("select");

            if ($("#fCausationclass1").val() == "软件" || $("#fCausationclass2").val() == "软件") {
                $(".ruanjianTr").show();
                common.setComponentRequired(["fSoftrank"], true);
            } else {
                $(".ruanjianTr").hide();
                common.setComponentRequired(["fSoftrank"], false);
                common.clearComponentVal(["fSoftrank"]);
            }
        });

        // comboselect.setDefaultValueByArr("外协", "软件", "需求缺陷");
        // form.render("select");
        //- 原因分类初始化 绑事件 开始 -------------------------------------------------------------


        //- 计算总金额 绑事件 开始 -------------------------------------------------------------
        $(document).on("blur", "[name='s:wQbdCalRewandpuns:fMoney']", computeMoney);
        $(document).on("click", ".subDeleteTr", computeMoney);

        function computeMoney() {
            if ($(this).text() == "删除") {
                $(this).parent().parent().find("[name='s:wQbdCalRewandpuns:fMoney']").val(0);
            }
            var objArr = $("[name='s:wQbdCalRewandpuns:fMoney']");
            var sumMoney = 0;
            objArr.each(function () {
                var money = $(this).val();
                if (isNaN(money * 1)) {
                    return;
                }
                sumMoney += 1 * (money == "" ? 0 : money);
            });
            $("[name='fAllcount']").val(Math.round(sumMoney * 100) / 100);
        }

        //- 计算总金额 绑事件 结束 -------------------------------------------------------------


        //- 归零 绑事件 开始 -------------------------------------------------------------
        form.on('select(fIfreset)', overRtnZero);
        function overRtnZero(data){
            var fIfreset = $("[name='fIfreset']").val();
            data.fIfreset && (fIfreset=data.fIfreset);
            if (fIfreset == "是") {
                common.setComponentRequired(["fResettype"], true);
                if(data){
                    resetTypeChange(data);
                }
            }else{
                common.setComponentRequired(["fResettype", "fSkillresettime", "fManageresettime"], false);
                common.setComponentRequired(["fSkillcerfileList"], false, "fileRequired");
                common.setComponentRequired(["fManagecerfileList"], false, "fileRequired");
            }
        }
        form.on('select(fResettype)', resetTypeChange);

        function resetTypeChange(data){
            var fIfreset = $("[name='fIfreset']").val();
            var fResettype = $("[name='fResettype']").val();
            data.fIfreset && (fIfreset=data.fIfreset);
            data.fResettype && (fResettype=data.fResettype);
            if (fIfreset != "是") {
                common.setComponentRequired(["fSkillcerfileList", "fManagecerfileList"], false,'fileRequired');
                common.setComponentRequired(["fSkillresettime", "fManageresettime"], false);
                return;
            }
            if (fResettype == "技术归零") {
                common.setComponentRequired(["fSkillcerfileList"], true, "fileRequired");
                common.setComponentRequired(["fSkillresettime"], true);
                common.setComponentRequired(["fManagecerfileList"], false,'fileRequired');
                common.setComponentRequired(["fManageresettime"], false);
            } else if (fResettype == "管理归零") {
                common.setComponentRequired(["fManagecerfileList"], true,"fileRequired");
                common.setComponentRequired(["fManageresettime"], true);
                common.setComponentRequired(["fSkillcerfileList"], false,'fileRequired');
                common.setComponentRequired(["fSkillresettime"], false);
            } else if (fResettype == "双归零") {
                common.setComponentRequired(["fSkillcerfileList", "fManagecerfileList"], true,"fileRequired");
                common.setComponentRequired(["fSkillresettime", "fManageresettime"], true);
            } else {
                common.setComponentRequired(["fSkillcerfileList", "fManagecerfileList"], false,'fileRequired');
                common.setComponentRequired(["fSkillresettime", "fManageresettime"], false);
            }
            computeResetDay(data);
        }
        //- 归零 绑事件 开始 -------------------------------------------------------------


        //- 责任追究div控制代码 绑事件 开始 -------------------------------------------------------------
        $(".zerenzhuijiuTr").hide();
        form.on('select(fIfduty)', initIfDutyDiv);

        function initIfDutyDiv(ifDuty) {
            var val = ifDuty.value ? ifDuty.value : ifDuty;
            var validArr = ["fDutyinvestigationtyp", "fConfirmdutyinvest", "fIdentification"];
            if (val == "是") {
                $(".zerenzhuijiuTr").show();
                $(".qbdms-SubTableTitle").show();
                $(".qbdms-tableDiv").show();
                common.setComponentRequired(validArr, true);
            } else {
                $(".zerenzhuijiuTr").hide();
                $(".qbdms-SubTableTitle").hide();
                $(".qbdms-tableDiv").hide();
                common.setComponentRequired(validArr, false);
                common.clearComponentVal(validArr);
                // 删除子表数据条目
                $(".subDeleteTr").each(function () {
                    if ($(this).parents(".subContTem").length == 0) {
                        $(this).trigger("click");
                    }
                });
            }
        }

        //- 责任追究div控制代码 绑事件 结束 -------------------------------------------------------------

        var secSelect = '<@secSelect.sec_select data_src=1 hasBlank=false/>'
        common.uploadfun(".fileUpload", {
            acceptMime: '${wjszsdsxlx}',
            exts: "${fileManagementUploadType}",
            secSelect: secSelect,
            isSub: false,
            isMultiFile: true,
            upLoadNumber: 0
        });

        //下载附件
        window.downFile = function (obj) {
            var fileId = $(obj).parents("span").attr("fileId");
            window.location.href = serverPath.qbdmsPath + setter.extendLinkPath + "attachFile/download?fileId=" + fileId;
        }

        // 删除
        $(document).on('click', '.deleteFile', function () {
            $(".uploadFileList").each(function (i, v) {
                common.constructFileStr(v)
            });
        });

        // 型号代号
        var xhdh = eval('${wQbdXhdhs}'); //型号代号
        var initXHDH = function (optionObj, item) {
            optionObj.text = item.fModelcode;
            optionObj.value = item.fModelcode;
            optionObj.setAttribute("xhmc", item.fModelname);
        };
        common.initDicData("fModelsymbol", xhdh, "", initXHDH);

        //-- 通过 督办新增 fSuperviseid
        if ("" !== "${did}" && undefined !== "${did}" && null !== "${did}") {
            $("input[name='fSuperviseid']").val("${did}");
            $("select[name='fModelsymbol']").val("${dbdh}");
            $("input[name='fModelname']").val("${dbmc}");
            $("input[name='fDutydept']").val("${dbzrdw}");
            $("textarea[name='fFailuredescription']").val("${dbwtxx}");
            $("input[name='fDutydept']").attr("readonly", "readonly");
            $("select[name='fModelsymbol']").attr("disabled", true);
            form.render("select");
            $("select[name='fModelsymbol']").next().children().children().attr("readonly", true);
            // $("select[name='fModelsymbol']").next().children().children().css("color","black!important;");

        }

        publicMethods.bottomFixd()
        form.on('select', function (data) {
            publicMethods.bottomFixd()
        });
        form.render();
    });
</script>
</body>
</html>